package com.zxl.thread;

public class ThreadVo {

	public volatile static int cou=1;
	
	public static void inc(){
		try {
			Thread.sleep(1);
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
		cou++;
	}
	
	public static void main(String[] args) {
		for (int i = 1; i <= 1000; i++) {
			new Thread(new Runnable() {
				public void run() {
					inc();
				}
			}).start();
		}
		System.out.println("count="+cou);
	}
}
